From 99d56215e65c4bf2ab0765218606f07a7550cbca Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 21 Aug 2019 14:42:48 +0800 Subject: [PATCH] lib/deploy: handle FIFREEZE ENOSYS failure When running under qemu, unimplemented ioctls such as FIFREEZE return ENOSYS, and this causes the deployment to fail. Catch this and handle it like EOPNOTSUPP. I'm not sure if qemu's behaviour is fully correct here (or if it should return EOPNOTSUPP) but it's trivial to handle regardless. Closes: #1901 Approved by: cgwalters --- src/libostree/ostree-sysroot-deploy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index d47f6438..9de5464a 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -1374,7 +1374,7 @@ fsfreeze_thaw_cycle (OstreeSysroot *self, * the filesystem is already frozen (EBUSY). * OK, let's just do a syncfs. */ - if (G_IN_SET (errno, EOPNOTSUPP, EPERM, EBUSY)) + if (G_IN_SET (errno, EOPNOTSUPP, ENOSYS, EPERM, EBUSY)) { /* Warn if the filesystem was already frozen */ if (errno == EBUSY) -- 2.30.2